﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class ReceivingAddressInfoConfig : EntityTypeConfiguration<ReceivingAddressInfo>
    {
        public ReceivingAddressInfoConfig()
        {
            ToTable("Himall_ReceivingAddressConfig");
            Property(item => item.AddressId).HasColumnType("text");
            Property(item => item.AddressId_City).HasColumnType("text");
            HasRequired(x => x.Himall_Shops).WithMany(x => x.Himall_ReceivingAddressConfig).HasForeignKey(x => x.ShopId);
        }
    }
}
